package com.qf.day02;

import java.util.Scanner;

public class Shopping {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入商品金额");
        double money = sc.nextDouble();
        System.out.println("请输入会员积分");
        double integral = sc.nextDouble();
        if (integral < 2000){
            System.out.println("您需要支付："+ money*0.9+"元");
        }else if(integral>= 2000 &&integral <4000){
            System.out.println("您需要支付："+ money*0.8+"元");
        }else if(integral>= 4000 &&integral < 8000){
            System.out.println("您需要支付："+ money*0.7+"元");
        }else if(integral>= 8000 ){
            System.out.println("您需要支付："+ money*0.6+"元");
        }else {
            System.out.println("您输入的数据有误");
        }
    }
}
